function checkPasswords(){
  var pass1 = document.getElementById("password1");
  var pass2 = document.getElementById("password2");
  console.log(pass1.value);
  console.log(pass2.value);
  	if (pass1.value != pass2.value) {
  		pass2.setCustomValidity("两次输入的密码不匹配");
  	}
  	//return true;
}